package cn.kgc.mcartoon.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 漫画-题材关联表
 * </p>
 *
 * @author christopher
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mm_cartoon_theme_rel")
public class MmCartoonThemeRelDO extends Model<MmCartoonThemeRelDO> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 漫画表主键ID
     */
    @TableField("cartoonId")
    private Long cartoonid;

    /**
     * 漫画类型字典表主键ID(题材)
     */
    @TableField("dicId")
    private Long dicid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
